import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.EventQueue;
import java.awt.Toolkit;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import java.awt.CardLayout;
import java.awt.event.ActionEvent;
import java.io.IOException;

import javax.swing.JButton;
import javax.swing.JCheckBox;


public class menuJFrame extends JFrame {

	private JPanel contentPane;
	private GameEngine gameEngine;
	private GameScreen gameScreen;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					menuJFrame frame = new menuJFrame();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
		
	}

	/**
	 * Create the frame.
	 * @throws IOException 
	 */
	public menuJFrame() throws IOException {
		//gameEngine = GameEngine.createGameEngine();
		gameScreen = GameScreen.createGameScreen();
		
		//gameScreen.draw( gameEngine.getLevelData(), gameEngine.getWorld() );
		this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);

		this.setUndecorated(true);

        this.setExtendedState(JFrame.MAXIMIZED_BOTH);

		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(0, 0, 1280, 720);
		contentPane = new JPanel();
		//contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(new CardLayout(0, 0));
		//DatabaseManager.createDatabaseManager().getLevelData(5);
		//JPanel mainMenu = new JPanel();
		//contentPane.add(mainMenu, "name_22885858749003");
		
		contentPane.add(gameScreen);
		
		
		//JPanel pauseMenu = new JPanel();
		//contentPane.add(pauseMenu, "name_22925970312106");
		
		//JCheckBox chckbxAbc = new JCheckBox("abc");
		//pauseMenu.add(chckbxAbc);
	}

}
